<?php
define ('APP',"./");
define ('DS',"/");
if (!defined('REVISION')) {
    $svn = file(APP . '.svn' . DS . 'entries');
    if (is_numeric(trim($svn[3]))) {
        $version = $svn[3];
    } else { // pre 1.4 svn used xml for this file
        $version = explode('"', $svn[4]);
        $version = $version[1];    
    }
    unset ($svn);
    define ('REVISION', $version);
    unset ($version);
}
?> 
